import java.util.HashMap;


public class TestHashMap {
    public static void main(String args[]){
        HashMap<String, Object> hash = new HashMap<String, Object>();
        A a=new A("a");
        hash.put("a", a);
       Object object= hash.get("a");
        
    }
    public static class A{
        protected String name ;
        public A(String name){
            this.name = name;
        }
    }
    public static class B extends A{

        public B(String name) {
            super(name);
        }
        
    }

}
